package com.deepclassifieds.daas.api.jdbc;

import com.deepclassifieds.daas.api.DaasExpression;
import com.deepclassifieds.daas.common.Reject;

public class DaasExpressionOrJdbcImpl implements DaasExpression {
	
	private final DaasExpression left;
	private final DaasExpression right;
	
	DaasExpressionOrJdbcImpl(DaasExpression left, DaasExpression right) {
		Reject.ifNull(left);
		Reject.ifNull(right);
		this.left = left;
		this.right = right;
	}

	@Override
	public String toString() {
		return "(" + left + ") OR (" + right + ")";
	}
}
